package com.basiclib.utils

import java.text.SimpleDateFormat
import java.util.*

class DateUtils {
    companion object {
        @JvmStatic
        val sf1 = "yyyy-MM-dd"
        @JvmStatic
        val sf3 = "yy.MM.dd"
        @JvmStatic
        val sf2 = "HH:mm:ss"

        fun formatterTimestampTo(timestamp: Long, formatStr: String): String {
            return SimpleDateFormat(formatStr).format(Date(timestamp))
        }

    }
}